package com.bum.api.processor.keeng.json.bo;

import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.bum.api.bo.KeengGuruBO;
import com.bum.api.core.exp.om.Metas;
import com.bum.api.core.exp.om.Params;
import com.google.gson.Gson;

public class KeengJsonBO {
	KeengGuruBO	keengGuruBO;

	Gson		gson;

	public String streams(String path, Params params, Metas metas) {
		String[] parts = StringUtils.split(path, "/");
		String id = parts[0];

		List<com.bum.guru.exp.keeng.om.PlayListItem> items = keengGuruBO.getAlbumStreams(id);
		return gson.toJson(items);
	}

	public void setGson(Gson gson) {
		this.gson = gson;
	}

	public void setKeengGuruBO(KeengGuruBO keengGuruBO) {
		this.keengGuruBO = keengGuruBO;
	}
}
